/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package server_v1_0;
import java.io.*;
import java.net.*;
import java.lang.Thread;

/**
 *
 * @author suhui
 */
public class clienttestobject {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception
    {
        long start = System.currentTimeMillis();
        Socket s = new Socket("localhost", 7000);
        ObjectOutputStream toServer = new ObjectOutputStream( s.getOutputStream());
        player p = new player();
        
        toServer.writeObject(p);

        long end = System.currentTimeMillis();
        System.out.println("That took " + (end-start) + "ms");
        Thread.currentThread().sleep(1000);
    }

}
